package cn.iot.sys.entity;


import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 水电设备记录类
 */
@Data
@TableName("t_sys_ewdevicelog")
public class SysEwdevicelog implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private int id;
    @TableField("operation_type")
    private String operationType;//操作类型
    @TableField("device_code")
    private String deviceCode;//操作设备编号
    @TableField("operation_context")
    private String operationContext;//操作内容
    @TableField("send_ip")
    private String sendIp;//发送IP地址
    @TableField("operation_user")
    private String operationUser;//操作用户
    @TableField("operation_ip")
    private String operationIp;//操作ip
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;//创建时间
}
